package com.example.lj.uav.holder;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.example.lj.uav.R;

public class ActionHolder extends RecyclerView.ViewHolder {
    public TextView mTvName;
    public TextView mTvParamSec;
    public TextView mTvParamAngle;
    public ImageView mIvReduceSec;
    public ImageView mIvPlusSec;
    public ImageView mIvReduceAngle;
    public ImageView mIvPlusAngle;
    public RelativeLayout mRlDelete;
    public LinearLayout mLlSecond;
    public LinearLayout mLlAngle;
    public EditText mEtSecond;
    public EditText mEtAngle;
    public ImageView mIvDelete;


    public ActionHolder(View itemView) {
        super(itemView);
        mTvName = itemView.findViewById(R.id.tv_name);
        mTvParamSec = itemView.findViewById(R.id.tv_action_item_data_seconds);
        mTvParamAngle = itemView.findViewById(R.id.tv_action_item_data_angle);
        mIvReduceSec = itemView.findViewById(R.id.iv_action_item_reduce_seconds);
        mIvPlusSec = itemView.findViewById(R.id.iv_action_item_plus_seconds);
        mIvReduceAngle = itemView.findViewById(R.id.iv_action_item_reduce_angle);
        mIvPlusAngle = itemView.findViewById(R.id.iv_action_item_plus_angle);
        mRlDelete = itemView.findViewById(R.id.rl_delete);
        mLlSecond = itemView.findViewById(R.id.ll_action_item_change_data_seconds);
        mLlAngle = itemView.findViewById(R.id.ll_action_item_change_data_angle);
        mEtSecond = itemView.findViewById(R.id.et_action_item_data_seconds);
        mEtAngle = itemView.findViewById(R.id.et_action_item_data_angle);
        mIvDelete = itemView.findViewById(R.id.iv_delete_action);
    }
}
